package edu.hawaii.myisern.model;

/**
 * Provides a data type for Sanity Check errors in the MyISERN social network database.
 * 
 * 
 * @author Ed Kim
 * @author Jon Lao
 * @author Jianfei Liao
 * @author Jared Sunouchi
 * 
 */
public class SanityError {
  /** A string for where the error comes from. */
  private String errorFrom;
  /** A string for where the error is at. */
  private String errorAt;
  /** A string for what the error is. */
  private String errorMessage;
  
  /**
   * Constructor.
   * 
   * @param errorFrom A string.
   * @param errorAt A string.
   * @param errorMessage A string.
   */
  SanityError(String errorFrom, String errorAt, String errorMessage) {
    this.errorFrom = errorFrom;
    this.errorAt = errorAt;
    this.errorMessage = errorMessage;
  }
  
  /**
   * Gets where the error is found.
   * 
   * @return A string for where the error is from.
   */
  public String getErrorFrom() {
    return this.errorFrom;
  }
  
  /**
   * Gets the error.
   * 
   * @return the object that is erroneous
   */
  public String getErrorAt() {
    return this.errorAt;
  }
  
  /**
   * Gets the error message.
   * 
   * @return errorMessage the error message.
   */
  public String getErrorMessage() {
    return this.errorMessage;
  }
}
